<?php
/**
 * 商品分类管理
 * Enter description here ...
 * @author nijn
 *
 */
class GoodsCateController extends AdminController {

	/*
        actionIndex  列表
        actionEdit   编辑
        actionDelete 删除
    */
	public $modelName = 'ProviderGoodsCate';
	
	public function modelProvider() {
		return array_merge(parent::modelProvider(), array(
			'criteria' => array(
				'condition' => 'worker_id = :uid',
				'params' => array(
					':uid' => Yii::app()->adminUser->id
				)
			),
		));
	}
	
	public function outerActions() {
		return array_merge(parent::outerActions(),array(
			'edit' => 'actions.goods.cate.edit',
			'admin' => 'actions.goods.cate.admin',
			'view' => 'actions.goods.cate.view',
		));
	}
}

?>